<div class="list_search">
	<?php echo $this->search_form;?>
</div>
<div class="list_add"><a href="<?php echo $this->url(array('controller'=>'member',
	'action' => 'addagent'));?>"><?php echo $this->translate($this->escape("Add new user"))?></a>
</div>
<?php if (count($this->paginator)): ?>
<div class="list">
	<div class="list_title">
		<div class="ltc1_user"><?php echo $this->translate("Name")?></div>
		<div class="ltc2_user"><?php echo $this->translate("Username")?></div>
		<div class="ltc3_user"><?php echo $this->translate("User type")?></div>
		<div class="ltc4_user"><?php echo $this->translate("Address")?></div>
		<div class="ltc5_user"><?php echo $this->translate("Managed by")?></div>
		<div class="ltc6_user"><?php echo $this->translate("Telephone")?></div>
		<!--<div class="ltc7_user"><?php echo $this->translate("Created date")?></div>
		--><div class="ltc8_user">&nbsp;</div>
	</div>
	<?php $i = 0;foreach ($this->paginator as $item): ?>
	<?php if($i++ % 2):?>
	<div class="list_data_odd">
	<?php else:?>
	<div class="list_data_even">
	<?php endif;?>
		<div class="ldc1_user"><a href="<?php echo $this->url(array('controller' => 'member',
				'action' => 'editagent', 'id'=>$item["id"]));?>"><?php echo $this->escape($item["name"]);?></a></div>
		<div class="ldc2_user"><?php echo $this->escape($item["username"]);?></div>
		<div class="ldc3_user"><?php echo $this->escape($this->translate($item["type_name"]));?></div>
		<div class="ldc4_user"><?php echo $this->escape($item["address"]);?></div>
		<div class="ldc5_user"><?php if(isset($item["manager_name"])) echo $this->escape($item["manager_name"]); else echo "&nbsp;";?></div>
		<div class="ldc6_user"><?php echo $this->escape($item["telephone"]);?></div>
		<!--<div class="ldc7_user"><?php echo $this->escape($item["created_date"]);?></div>
		--><div class="ldc8_user">
			<a href="<?php echo $this->url(array('controller' => 'member',
				'action' => 'deleteagent', 'id'=>$item["id"]));?>"><?php echo $this->translate("Delete");?></a>
		</div>
	</div>
	<?php endforeach;?>
</div>
<?php endif; ?>
<?php echo $this->paginationControl($this->paginator, 'Sliding', 'paging/item.phtml'); ?>

